<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>

<body>
  <script src="./myWebSocket.js"></script>
  <script>
    const ws = new MyWebSocket({
      url: 'ws://124.222.224.186:8800',
      isHeart: true, // 是否开启心跳
      isRetry: true, // 是否重连
    })
    ws.connect()
  </script>
</body>

</html>